
<%@include file="includes/top.jsp"%>
<h1><spring:message code="${pageTitle}" /></h1>
<form:form action="${fn:length(userDetail.id) > 0 ? 'editUserDetail.html' : 'addUserDetail.html'}?id=${fn:escapeXml(param.id)}" cssClass="v" cssStyle="width:75%;" commandName="${commandName}">
	
  <c:if test="${not empty successMessage}">
			<div id="msg" class="info">${successMessage}</div>
		</c:if>

		<spring:hasBindErrors name="${commandName}">
			<div id="msg" class="errors">
			  <spring:message code="application.errors.global" />
		  </div>
		</spring:hasBindErrors>
		
	<fieldset class="repeat"><legend><spring:message code="management.userdetail.add.page" /></legend>
	<div class="fieldset-inner">
		<p class="instructions"><spring:message code="management.services.add.instructions" /></p>
		<span class="oneField" style="display:block; margin:5px 0;">
			<label for="colName" class="mypreField"><spring:message code="management.userdetail.add.property.name" /> </label>
			<form:input readonly="${fn:length(userDetail.id) > 0 ? true : false}" path="colName" size="21" maxlength="20" cssClass="required" cssErrorClass="error" />
			<form:errors path="colName" cssClass="formError" />
				<span class="oneChoice">
					<form:checkbox path="colRequired" value="true" cssClass="check" />
					<label for="colRequired" id="colRequired" class="postField"><spring:message code="management.userdetail.add.property.colRequired.enabled" /></label>
				</span>
			<br />
		</span>
		<span class="myField" style="display:block; margin:5px 0;">
			<label for="colLength" class="mypreField"><spring:message code="management.userdetail.add.property.colLength" /></label>
			<form:input path="colLength" size="21" maxlength="20" cssClass="required" cssErrorClass="error" />
			<form:errors path="colLength" cssClass="formError" />
			<br />
		</span>
		
		<!--<span class="myField">
			<label for="colType" class="preField"><spring:message code="management.user.adddetail.property.colType" /></label>
			<form:input path="colType" size="11" maxlength="10" cssClass="required" cssErrorClass="error" />
			<form:errors path="colType" cssClass="formError" />
			<br />
		</span>-->
		
		<span class="myField">
			<label for="label" class="mypreField"><spring:message code="management.user.adddetail.property.label" /></label>
			<form:input path="label" size="11" maxlength="10" cssClass="required" cssErrorClass="error" />
			<form:errors path="label" cssClass="formError" />
			<br />
		</span>
	</div>
	</fieldset>
	<div class="actions">
		<button type="submit" class="primaryAction" id="submit-wf_FormGardenDemonst" value="<spring:message code="management.services.add.button.save" />">
		<spring:message code="management.services.add.button.save" /></button> 
		or <a href="manageUserDetail.html" style="color:#b00;"><spring:message code="management.services.add.button.cancel" /></a>
	</div>
</form:form>
<%@include file="includes/bottom.jsp" %>
